package com.itlong.cloud.property.resource;

import com.itlong.cloud.POJO.VO.property.PropertyUiInfoVO;
import com.itlong.cloud.noncore.property.IPropertyUiServiceClient;
import com.itlong.cloud.property.service.IPropertyUiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <desc>
 *       物业-UI查询暴露实现接口。
 * <desc/>
 *
 * @createDate 2018-03-28.
 */
@RestController
public class PropertyUiServiceResource  implements IPropertyUiServiceClient{

    @Autowired
    IPropertyUiService iPropertyUiService;
    /**
     * <desc>
     *      UI信息获取。
     * <desc/>
     *
     * @param projectId
     * @return
     * @author shengen.T
     * @createDate 2018-03-28
     */
    @Override
    @RequestMapping(path = "/system/user/getUiInfo")
    public PropertyUiInfoVO getUiInfo(@RequestParam("projectId") String projectId) throws Exception{
        return iPropertyUiService.getUiInfo(projectId);
    }
}
